import sys
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtWidgets import QLabel

class Example(QWidget):
    def __init__(self):
        super().__init__()
        self.initUI()

    def initUI(self):
        self.resize(480,560)
        self.setWindowTitle(sys.argv[0])
        a = QLabel(self)
        a.setToolTip('hhh')
        a.setText('shaobing')
        self.show()





if __name__ == '__main__':
    app = QApplication(sys.argv)
    ui = Example()
    sys.exit(app.exec())
